package com.ivan.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ivan.model.entity.hosp.BookingRule;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/*
 * @Author      Ivan
 * @Date        2023/4/6 8:24
 * @Description
 */
public interface BookingRuleMapper extends BaseMapper<BookingRule> {
    //根据hoscode查询预约规则
    @Select("select * from booking_rule where hoscode = #{hoscode}")
    BookingRule selectByHoscode(@Param("hoscode") String hoscode);
}
